package io.adminboot.web;

import io.adminboot.domain.param.JqGridParam;
import io.adminboot.domain.vo.PageVO;
import io.adminboot.service.SysLogService;
import io.adminboot.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 系统日志
 * 
 */
@Controller
@RequestMapping("/sys/log")
public class SysLogController {
	@Autowired
	private SysLogService sysLogService;
	
	/**
	 * 列表
	 */
	@ResponseBody
	@GetMapping("/list")
//	@RequiresPermissions("sys:log:list")
	public R list(JqGridParam param){
		PageVO page = sysLogService.queryPage(param.getPageNum(), param.getPageSize(), null);

		return R.ok().put("page", page);
	}
	
}
